import { onMounted } from 'vue';

const getInfo = () => {
  const token = uni.getStorageSync('token');
  if (!token) {
    uni.navigateTo({
      url: '/pages/login/login'
    });
  }
};

const useGetInfoOnMounted = () => {
  onMounted(() => {
    getInfo();
  });
};

export default useGetInfoOnMounted;